<%@page import="support.*, java.util.*, java.sql.*, javax.sql.*" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %> 
<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>

<jsp:include page="header.jsp" />

	<div id="content" class="expand">
		<h2>Graduate Application</h2>
		
		<p>Hello, <bean:write name="StudentsForm" property="firstName" /> <bean:write name="StudentsForm" property="lastName" /> <br/>
		You are a citizen of: <bean:write name="StudentsForm" property="citizenship" /> <br/>
		and you reside in: <bean:write name="StudentsForm" property="residency" /></p>
		
		<html:errors />

		<html:form action="students/address">
			<logic:equal name="StudentsForm" property="residency" value="United States">
				Street Address: <br/>
				<html:text name="StudentsForm" property="address" /> <br/>
				City: <br/>
				<html:text name="StudentsForm" property="city" /> <br/>
				State: <br/>
				<html:text name="StudentsForm" property="state" size="2" maxlength="2" /> <br/>
				Zip Code: <br/>
				<html:text name="StudentsForm" property="zipCode" size="5" maxlength="5" /> <br/>
				Phone Number: <br/>
				(<html:text name="StudentsForm" property="areaCode" size="3" maxlength="3" />)
				<html:text name="StudentsForm" property="phone" size="7" maxlength="7" /> <br/>
				<html:submit value="Submit"/>
			</logic:equal>

			<logic:notEqual name="StudentsForm" property="residency" value="United States">
				Street Address: <br/>
				<html:text name="StudentsForm" property="address" /> <br/>
				City: <br/>
				<html:text name="StudentsForm" property="city" /> <br/>
				Zip Code: <br/>
				<html:text name="StudentsForm" property="zipCode" size="5" maxlength="5" /> <br/>
				Phone Number: <br/>
				+<html:text name="StudentsForm" property="countryCode" size="1" maxlength="1" /> 
				<html:text name="StudentsForm" property="phone" size="10" maxlength="10" /> <br/>
				<html:submit value="Submit"/>
			</logic:notEqual>
		</html:form>
		
	</div>
	
</body>
</html>